package com.msb.controller;

import com.msb.pojo.Person;
import com.msb.service.MyPersonService;
import com.msb.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author sunpeng
 * @Date 2021-07-21 16:30
 */
@RestController
public class PersonController {

    @Autowired
    private PersonService personService;

    public List<Person> show(){
        return personService.show();
    }
}
